package com.ihr360.validation.annonation;

import com.ihr360.validation.Validator;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE,ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface Valid {

    /**
     * 验证器名称
     *
     * @return
     */
    Class<? extends Validator> validator() default Validator.class;
}